#ifndef __DRV_IIC_H
#define __DRV_IIC_H
#include<stdint.h>
#include "stm32f4xx_hal.h"
extern I2C_HandleTypeDef i2c;
int8_t iicinit(void);
int8_t iicdeinit(void);
int8_t write_reg(uint8_t addr, uint8_t *pdata, uint8_t size);
int8_t read_reg(uint8_t addr, uint8_t *pdata, uint8_t size);

#endif

